package com.ruoyi.store.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.store.domain.StoreApplication;
import com.ruoyi.store.mapper.StoreApplicationMapper;
import com.ruoyi.store.service.StoreApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-16
 */
@Service
public class StoreApplicationApplicationServiceImpl implements StoreApplicationService
{
    @Autowired
    private StoreApplicationMapper storeApplicationMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public StoreApplication selectTBusinessApplicationById(Long id)
    {
        return storeApplicationMapper.selectTBusinessApplicationById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param storeApplication 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<StoreApplication> selectTBusinessApplicationList(StoreApplication storeApplication)
    {
        return storeApplicationMapper.selectTBusinessApplicationList(storeApplication);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param storeApplication 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTBusinessApplication(StoreApplication storeApplication)
    {
        storeApplication.setCreateTime(DateUtils.getNowDate());
        return storeApplicationMapper.insertTBusinessApplication(storeApplication);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param storeApplication 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTBusinessApplication(StoreApplication storeApplication)
    {
        storeApplication.setUpdateTime(DateUtils.getNowDate());
        return storeApplicationMapper.updateTBusinessApplication(storeApplication);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTBusinessApplicationByIds(Long[] ids)
    {
        return storeApplicationMapper.deleteTBusinessApplicationByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTBusinessApplicationById(Long id)
    {
        return storeApplicationMapper.deleteTBusinessApplicationById(id);
    }
}
